﻿using B.S.Data.MES.API.Dto.GenerateIDto;
using B.S.Requst;
using MediatR;

namespace B.S.Data.MES.API.Applications.GenerateItemsApplication
{
    /// <summary>
    /// 分页显示生产计划物品命令
    /// </summary>
    public class ShowGenerateItemsCommand : IRequest<APIPageing<List<DtoGenerateItems>>>
    {
        /// <summary>
        /// 页码
        /// </summary>
        public int PageIndex { get; set; } = 1;
        
        /// <summary>
        /// 页大小
        /// </summary>
        public int PageSize { get; set; } = 10;
        
        /// <summary>
        /// 物品编号（模糊搜索）
        /// </summary>
        public string? ItemNumber { get; set; }
        
        /// <summary>
        /// 物品名称（模糊搜索）
        /// </summary>
        public string? ItemName { get; set; }
        
        /// <summary>
        /// 物品类别
        /// </summary>
        public string? ItemCategory { get; set; }
        
        /// <summary>
        /// 基础信息外键
        /// </summary>
        public int? GenerateplanBasicId { get; set; }
    }

    /// <summary>
    /// 根据ID获取单个生产计划物品命令
    /// </summary>
    public class GetGenerateItemByIdCommand : IRequest<APIRequst<DtoGenerateItems>>
    {
        /// <summary>
        /// 物品ID
        /// </summary>
        public int GenerateItemsId { get; set; }
    }
}
